'''
十进制转二进制

n = int(input())
res = []
while n>0 :
    yushu = n%2
    res.append(yushu)
    n = n//2
res.reverse()
joined_string  = ''.join(str(x) for x in res)
print(joined_string)
'''




'''
十进制转十六进制
n = int(input())
res = []
dict = {10:'A',11:'B',12:'C',13:'D',14:'E',15:'F'}
while n>0:
    yushu = n%16
    if yushu>=10:
        res.append(dict[yushu])
    else:
        res.append(yushu)
    n = n//16
res.reverse()
print(''.join(str(x) for x in res))
'''







